$borderColor: rgba(107, 114, 128, .3);

.mainContainer {}

//首页数据卡片
.topCardData {
  .dataCard {
    @apply ; //border-0 bg-blue-50
    padding: 5px;

    .cardTitle {
      @apply flex justify-between;

      .title {
        @apply text-base;
      }

      .tag {}
    }

    ::v-deep .el-card__body {
      padding: unset !important;
    }

    .cardBody {
      padding: var(--el-card-padding);
      @apply text-3xl font-bold text-gray-500;
    }

    .cardFooter {
      @apply flex justify-between text-base text-gray-500;
      border-top: 1px solid var(--el-card-border-color);
      padding: var(--el-card-padding);

      .footerLeft {}

      .footerRight {
        @apply font-bold text-gray-500;

        .unitClass {
          margin-left: 5px;
        }
      }
    }
  }
}

//************--公共内容--*************
.commonBody {

  // @apply bg-gray-50;
  // height: calc(100vh - 130px);
  // overflow: auto;
  &:deep(::-webkit-scrollbar) {
    display: unset !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 5px;
    margin-right: 10px;

  }

  &:deep(::-webkit-scrollbar-thumb) {
    border-radius: 5px;
    //-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #d7d9dd;
  }

  .searchBody {
    @apply flex items-center justify-between pt-1 pb-4 mb-4;
    border-bottom: 1px solid $borderColor;
    max-width: 100%;
    overflow: auto;



    .leftSearch {
      // max-width: 90%;
      @apply flex items-center;

      // max-width: calc(100% - 10px);
      .searchForm {
        @apply flex items-center; //mr-4
        overflow-x: auto;
        min-height: 40px;

        .dateSearchItem {
          min-width: 310px !important;
        }

        .inputWidth {
          width: 210px;
        }

        .el-form-item {
          margin-right: 15px;
          min-width: 150px;
          margin-bottom: 0;
          // padding-top: 7px;
        }

        :deep(.el-input__wrapper) {
          width: 100%;
        }

        :deep(.el-range-input) {
          max-width: 100px;
          min-width: 50px;
        }

        :deep(.el-input__wrapper) {
          width: unset;
        }
      }

      .rightSearch {
        @apply flex items-center; //ml-4

        .searchBtn {
          @apply mr-2;
        }
      }


    }

    .btnBody {
      @apply flex items-center justify-between ml-4;

      .btnNormal {
        @apply mr-2;
      }
    }

  }

  .tableBody {

    .tbClass th {
      /* 表头背景色 */
      color: #909399;
      /* 表头字体颜色 */
    }

    :deep(.el-table) {
      height: 100%;
    }

    .tableHeader {
      @apply bg-gray-50;
      padding: 10px;
      border-bottom: 1px solid var(--el-card-border-color);
    }

    .tableContent {
      padding: 10px;
    }

    .deleteBtn {
      @apply ml-3;
    }

    .tbPagination {
      @apply flex items-center justify-end mt-4;
    }
  }
}

//************--卡片公共--*************
.cardNav {
  :deep(.el-card__header) {
    padding: 10px;
  }
}

//************--tree属性结构--*************
.switchDrag {
  @apply flex items-center justify-between mr-3;
}

.custom-tree-node {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding-right: 24px;
  height: 100%;
}

.custom-tree-node .label {
  display: flex;
  align-items: center;
  ;
  height: 100%;
}

.custom-tree-node .label.grey {
  color: #999;
}

.custom-tree-node .label .el-tag {
  margin-left: 5px;
}

.custom-tree-node .do {
  display: flex;
  align-items: center;
}

.custom-tree-node .do .el-icon {
  font-size: 18px !important;
}

.custom-tree-node .do i {
  margin-left: 5px;
}

.custom-tree-node .do i:hover {
  color: #333;
}

.treeBody {
  width: 100%;
  height: 100%;
}

.categoryTree {
  @apply flex;
  height: 100%;

  .leftTree {
    @apply flex flex-col mr-5;
    width: 20%;
    min-width: 220px;
    height: 100%;
    overflow: auto;
    border-right: 1px solid $borderColor;

    :deep(.el-tree-node) {
      padding: 1px 0;

      .el-tree-node__content {
        height: 40px;
      }
    }
  }

  .rightContent {
    width: 80%;
  }
}
.treeDetailBox{
  height: 100%;
}
.treeEditBox {
  height: 100%;
  position: relative;
  .topTitle {
    @apply flex items-center justify-between;
    margin-bottom: 16px;

    .leftTitle {
      color: var(--el-text-color-primary);
      font-size: 16px;
      font-weight: bold;
    }

    .rightOpt {}
  }
  .bottomBtnBox {
    @apply flex align-items-center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    justify-content: center;
  }
}